var addressbook_use_flag = 0;
G.extend({
	mailStatusMapper:{"0":"试用","1":"正常","2":"已提醒续费","3":"待续费","4":"冻结","5":"删除","6":"试用-冻结",tryout:0,frozen:6},
	mailTypeMapper:{"0":"S220","1":"S320","2":"S600","3":"S1G"},
	maxAttachmentSizeMapper:{"0":20*1024*1024,"1":30*1024*1024,"2":60*1024*1024,"3":60*1024*1024},
	//最大接受人数量限制映射
	maxReceiverNumMapper:{"0":30,"1":50,"2":80},
	//正常状态下最大接受人数量
	maxReceiverNumNormal:20,
	//当前状态下最大接受人数量
	maxReceiverNum:20,
	UDISKUSER:true,
	pop3Service:{name:"超级邮霸"}
});	

G.userinfo = ExecFunc(function(){return USERINFO.evalJSON();});

tmp = '{"user_expire_date": "1262188800796", "user_status": "1", "user_email_type": "1", "user_size_limit": "6000", "user_ext_status": "1", "user_attach_limit": "60"}';
//G.extend({userinfo:ExecFunc(function(){return tmp.evalJSON();}) });
//正常状态下的收信数量
G.maxReceiverNumNormal = G.maxReceiverNumMapper[G.userinfo.user_email_type];
//邮箱状态
G.mailStatus = G.mailStatusMapper[G.userinfo.user_ext_status];
//当前状态下的最大收信量
G.maxReceiverNum = G.userinfo.user_ext_status==1?
				   G.maxReceiverNumNormal:
				   (G.userinfo.user_ext_status==4||G.userinfo.user_ext_status==6?0:G.maxReceiverNum);
//是不是冻结期
G.isFrozen = G.userinfo.user_ext_status==4;
G.isTryoutFrozen = G.userinfo.user_ext_status==6;
G.isNormal = G.userinfo.user_ext_status==1;
G.maxAttachmentSize = G.maxAttachmentSizeMapper[G.userinfo.user_email_type];
//http协议
G.urlProtocol=window.location.href.indexOf("https")==0?"https":"http";
//是否拥有在线翻译权限
G.hasTranslateRights = function(){
	return G.userinfo.user_email_type!=0;
}
//是否拥有地图使用权限
G.hasMapRights = function(){
	return G.userinfo.user_email_type!=0;
}
var mapProvince=[
				  '北京','上海','天津','重庆','安徽','福建','甘肃','广东','广西','贵州','海南','河北','河南','黑龙江','湖北','湖南','吉林',
				  '江苏','江西','辽宁','内蒙古','宁夏','青海','山东','山西','陕西','四川','西藏','新疆','云南','浙江','香港','澳门','台湾'
				];

var customDialog = new Dialog();

//金山词霸的参数列表 
iciba_param =new Array();	 
// 宽度
iciba_param['width']     = '350';
// 内容高度
iciba_param['height']    = '146'; 
//启动方式 1 一启动就马上打开页面 关闭的时候同时也禁用
iciba_param['startType']  ='0';
//默认 是否定位？ 
iciba_param['defalutDw']  ='0';
//默认定位的距离顶部的高度 
iciba_param['defalutDwTop']  ='100';
//默认定位的距离左变的长度 
iciba_param['defalutDwLeft']  ='100';

// 小尺寸宽度
iciba_param['widthSmall']     = '270'; 
// 小尺寸内容高度
iciba_param['heightSmall']    = '96';  
//初始化开启还是关闭 0关闭 1开启 无记忆功能)
iciba_param['initEnable']='0'; 
